package com.roadjava.rbac.service;

import com.roadjava.rbac.bean.entity.SuggestionDO;

import java.util.List;

/**
 * @description 针对表【suggestion】的数据库操作Service
 */
public interface SuggestionService {
    void addSuggestion(SuggestionDO suggestion); // 添加建议
    void updateSuggestion(SuggestionDO suggestion); // 更新建议
    boolean deleteSuggestion(Integer suggestionId); // 删除建议
    SuggestionDO getSuggestionById(Integer suggestionId); // 根据ID获取建议
    List<SuggestionDO> getSuggestionsByResourceId(Integer resourceId); // 根据资源ID获取建议列表
    List<SuggestionDO> getSuggestionsByUserId(Long userId); // 根据用户ID获取建议列表
}
